package edu.ynu.se.xiecheng.achitectureclass.Demo1.service;

import edu.ynu.se.xiecheng.achitectureclass.Demo1.dao.DeviceDataDao;
import edu.ynu.se.xiecheng.achitectureclass.Demo1.entity.PotassiumData;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import java.util.List;

@Service("Potassium")
public class PotassiumDataService extends DeviceDataService {

    public PotassiumDataService(DeviceDataDao deviceDataDao, AccessTokenService accessTokenService, RestTemplate restTemplate) {
        super(deviceDataDao, accessTokenService, restTemplate);
    }

    @Override
    protected List<String> getDeviceIds() {
        return List.of("327061430532576244");
    }

    @Override
    protected PotassiumData createNewDataInstance() {
        return new PotassiumData();
    }

    @Override
    protected String getUnit() {
        return "mg/kg";
    }
}
